public class TestBinarySearchTree {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree=new BinarySearchTree();
        int[] array={15,19,23,85,30,27,66};
        for (int i = 0; i < array.length; i++) {
            binarySearchTree.insert(array[i]);
        }
        binarySearchTree.remove(66);
        BinarySearchTree.TreeNode treeNode = binarySearchTree.search(30);
        System.out.println(treeNode.val);

    }
}
